﻿<local:DocumentBase x:Class="WPFExcelReport.WB08R"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:ReflectionStudio.Core.Database;assembly=ReflectionStudio.Core"
        xmlns:wep="clr-namespace:WPFExcelReport"
       Height="500" Width="1024" 
          
        Title="坯布结存"  
     >
    <local:DocumentBase.Resources>
        <db:INTEXDataSet x:Key="iNTEXDataSet" />
    </local:DocumentBase.Resources>
    <Grid DataContext="" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="120"></RowDefinition>
            <RowDefinition Height="500"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0">
            <Button Content="查询" Height="25" HorizontalAlignment="Left" Margin="11,17,0,0" Name="btnQuery"
                        Click ="btnQuery_Click" VerticalAlignment="Top" Width="106" />
            <Button Content="产生报表" Height="25" HorizontalAlignment="Left" Margin="11,17,0,0" Name="btnReport"
                        Click ="btnReport_Click" VerticalAlignment="Top" Width="106" />
        </WrapPanel>
        <GroupBox Grid.Row="1"
            Header="查询条件" Height="100" HorizontalAlignment="Stretch" Name="groupBox1" VerticalAlignment="Top"
                  Margin="10,5,5,10"
                  Background="Goldenrod">
            <Grid Height="Auto" HorizontalAlignment="Stretch" >
            </Grid>
        </GroupBox>
        <fd:FilteringDataGrid Grid.Row="2"
            AutoGenerateColumns="False" EnableRowVirtualization="True"  
                              Margin="3,3,3,3"
                                             ItemsSource="{Binding Path=GREIGE_INVENTORY}"
                                              x:Name="MasterData" 
                                                 CanUserReorderColumns="True"  
                                             CanUserResizeRows="True"
                                              CanUserSortColumns="True"
                                              IsFilteringCaseSensitive="False" 
                                              RowDetailsVisibilityMode="VisibleWhenSelected"                                                 
                                              EnableColumnVirtualization="True"  
                                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                                              SelectionChanged="ItemsControls_SelectionChanged"
                                              >
            <DataGrid.Columns>
                <!--品种	色号	缸号	已织布总件数	已织布总米数	已发外加工件数	已发外加工米数	
                待检区件数	待检区米数	可发区件数	可发区米数	C布区件数	C布区米数-->
                <DataGridTextColumn Binding="{Binding Path=ARTICLE}" Header="品种" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=WBBDPART}" Header="缸号" Width="SizeToCells" MinWidth="100" />
                <DataGridTextColumn Binding="{Binding Path=BATCHQTY}" Header="已织总件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=BATCHMTR}" Header="已织总米数" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=FINISHQTY}" Header="已发外件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=FINISHMTR}" Header="已发外米数" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=UNCHECKEDQTY}" Header="待检区件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=UNCHECKEDMTR}" Header="待检区米数" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=CHECKEDQTY}" Header="可发区件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=CHECKEDMTR}" Header="可发区米数" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=DEFECTQTY}" Header="其它区件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=DEFECTMTR}" Header="其它区米数" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=REWORKQTY}" Header="织造回修件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=REWORKMTR}" Header="织造回修米数" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=DELQTY}" Header="手工清除件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=DELMTR}" Header="手工清除米数" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=TOTQTY}" Header="库存总件数" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=TOTMTR}" Header="库存总米数" Width="SizeToCells" MinWidth="80" />
            </DataGrid.Columns>
        </fd:FilteringDataGrid>
    </Grid>
</local:DocumentBase > 